#ifndef CBOARD_H
#define CBOARD_H

#include "params.h"
#include "defs.h"
#include "CList.h"

class CBoard
{
	
	// desk
	uint 	board[ 128 ];
	uint 	piece[ 64 ];
	
	int _clear();
	
	int _printPiece( uint pie );
	int _genSlideMoves( CList * list, uint side, uint move_from, uint move_type, uint move_distance );
	int _saveSlideMove( CList * list, uint side, uint move_from, uint move_to );
	
	public:
		CBoard();
		~CBoard();
		
		int init();
		int setPiece( uint side, uint pie, uint sq );
		int print();
		
		
		int genAllMoves( CList * list, uint side );
		
	protected:
};

#endif
